//package com.handsome.mailconfig;
//
//import org.springframework.amqp.core.*;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//
///**
// * @Author Handsome
// * @Date 2022/1/27 16:50
// * @Version 1.0
// */
//@SuppressWarnings({"all"})
//@Configuration
//public class MailRabbitConfig {
//
//    //Fanout交换机 起名：Mail_Rabbit_FanoutExchange
//    @Bean
//    public FanoutExchange mailRabbitFanoutExchange() {
//        return new FanoutExchange("Mail_Rabbit_FanoutExchange", true, false);
//    }
//
//    //队列 起名：Mail_Rabbit_FanoutQueue
//    @Bean
//    public Queue mailRabbitFanoutQueue() {
//        return new Queue("Mail_Rabbit_FanoutQueue", true);
//    }
//
//    //绑定  将队列和交换机绑定
//    @Bean
//    public Binding mailBingding() {
//        return BindingBuilder.bind(mailRabbitFanoutQueue()).to(mailRabbitFanoutExchange());
//    }
//
//}
